import { defineComponent, h } from '@vue/runtime-core'
import bulletImg from '../../assets/images/bullet.png'
export default defineComponent({
  props: {
    bulletInfo: {
      type: Object,
      default: {
        width: 30,
        height: 60
      }
    }
  },
  render(ctx) {
    return h('Sprite', {
      texture: bulletImg,
      x: ctx.bulletInfo.x,
      y: ctx.bulletInfo.y,
      width: ctx.bulletInfo.width,
      height: ctx.bulletInfo.height
    })
  }
})